package com.edu.service.impl;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.edu.bean.Dept;
import com.edu.mapper.DeptMapper;
import com.edu.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired(required = false)
    private DeptMapper deptMapper;

    @Transactional
    @LcnTransaction
    public void saveDept(Dept dept) {
        deptMapper.saveDept(dept);
    }
}
